home *** CD-ROM | disk | FTP | other *** search
/ Trading on the Edge / Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin / mac / Mac_Files / Vendor Demos / HiQ / HiQ•Help / HiQ•Help.rsrc / PICT_10808_Optimization pg 8.png < prev    next >
Portable Network Graphic  |  1992-04-28  |  75KB  |  816x1056  |  8-bit (256 colors)
Labels: book | chat room | crt screen | monitor | reckoner | sky
OCR: OPTIMIZER CRIPTS Example Determine the minimum of the function: (X1-2) 1 subject to the constraints: h(x) X - 2x 2+1=0 g(x) -10 IMSL provides this example with the minimum value of 1. .393 at the optimizing vector .8228 0 .9114) Problem Script: Constrained Optimization: project optFct, eqlConFct, ineglConFct; local dimension, eqIConFctDim, ineqlConFctDim. tolerance maxIterations maxFctCalls optAlgType; dimension eqIConFctDim ineqlConFctDim tolerance 1.0e-8; maxiterations 128; maxFctCalls 1024* *128 optAlgType initVector {2.0,2.0}; function optFct(x) return((x[1]-2) ^2+(x[2]-1^2); end function; function ealConFct(x) h[1] x[1]-2*x[2]+1; return(h) end function function ineqlConFct(x) g[1] [1] 2/4 .0+x[2]^2-1; return(g); end function [minValue, optVector] - OptNonLinCon( optFct ealConFct ineql ...